import { createRouter, createWebHistory } from 'vue-router'
import Layout from '@/examples/Layout.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/examples/demo'
    },
    {
      path: '/examples',
      component: Layout,
      children: [
        {
          path: 'demo',
          component: () => import('@/examples/demo/index.vue')
        },
        {
          path: 'ellipsis',
          component: () => import('@/examples/ellipsis/index.vue')
        },
        {
          path: 'fixed',
          component: () => import('@/examples/fixed/index.vue')
        }
      ]
    }
  ]
})

export default router
